<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AdminRole extends BaseModel
{
    public function users()
    {
        return $this->belongsToMany('App\Models\AdminUser', 'admin_role_users',
        'user_id', 'role_id');
    }

    public function permissions()
    {
    	return $this->belongsToMany('App\Models\AdminRole', 'admin_role_permission', 'role_id', 'permission_id');
    }
}
